layui.use(['table', 'ax','admin'], function () {
    var $ = layui.$;
    var table = layui.table;
    var $ax = layui.ax;
    var admin = layui.admin;

    /**
     * 基础字典管理
     */
    var Score = {
        tableId: "scoreTable"
    };

    /**
     * 初始化表格的列
     */
    Score.initColumn = function () {
        return [[
            {type: 'checkbox'},
            {field: 'scoreId', hide: true, title: ''},
            {field: 'dataName', sort: false, title: '任务名称'},
            {field: 'fileName', sort: false, title: '文件名称'},
            {field: 'score', sort: false, title: '分数'},
            {field: 'name', sort: false, title: '评分人'},
            {field: 'createTime', sort: false, title: '评分时间'}
        ]];
    };



    /**
     * 渲染表格
     */
        // 渲染表格
    var tableResult = table.render({
            elem: '#' + Score.tableId,
            url: Feng.ctxPath + '/score/scoreLogList?fileId='+$("#fileId").val(),
            page: true,
            height: "full-98",
            cellMinWidth: 100,
            cols: Score.initColumn()
        });

    Score.search = function () {
        var queryData = {};
        table.reload(Score.tableId, {where: queryData});
    }

});
